/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package domein;

import java.util.Scanner;

/**
 *
 * @author Lucas
 */
public class Main
{
    public static void main(String[] args)
    {
        Client client = new Client("127.0.0.1", 1500, "test");

        //client.start();

        Scanner scan = new Scanner(System.in);

        while (true) {
            String msg = scan.nextLine();

            client.sendMessage(msg);
            
            
            if(msg.startsWith("/disconnect"))
                break;
        }

        // done disconnect

        client.disconnect();
        
    }
}
